/**
 * 2025/01/01 - 2025/12/31
 */
package com.snail.server.order.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;
import lombok.ToString;

/**
 * @author zgadmin
 * @date 2025/8/27 14:58
 */
@Getter
@ToString
public enum PayStatusEnum implements IEnum<Integer> {

    PENDING_PAYMENT(10, "待支付"),
    PARTIAL_PAYMENT(11, "部分支付成功"),
    PAYMENT_SUCCESS(12, "支付成功"),
    PAYMENT_FAIL(13, "支付失败"),
    PENDING_REFUND(20, "待退款"),
    PARTIAL_REFUND(21, "部分退款成功"),
    REFUND_SUCCESS(22, "退款成功"),
    REFUND_FAIL(23, "退款失败"),
    ORDER_CLOSE(1, "订单关闭"),
    ;

    private final Integer value;

    private final String desc;

    PayStatusEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

}